# !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/10/13 6:01 下午
# @Author  : 白辉东
# @Mail    : masterbai2018@outlook.com
# @File    : urls.py
# @Software: PyCharm

from django.urls import path

from django.urls import re_path
from . import views

urlpatterns = [
    path('speakerProduct/', views.SpeakerProductListAPIView.as_view()),
    # re_path(r'speakerProduct/(?P<pk>\d+)/$', views.SpeakerProductDetailAPIView.as_view()),
    # path('caseModule/', views.CaseModuleListAPIView.as_view()),
    path('testcase/', views.TestCaseListAPIView.as_view()),
    path('testcase/add/', views.TestCaseDetailAPIView.as_view()),
    path('task/info/', views.TaskInfoAPIView.as_view()),
    path('testcase/getTaskAllCase/', views.TaskAllCaseAPIView.as_view()),
    re_path(r'testcase/getCase/(?P<pk>\d+)/$', views.TestCaseRetrieveAPIView.as_view()),
    re_path(r'testcase/delete/(?P<pk>\d+)/$', views.TestCaseDeleteAPIView.as_view()),
    # re_path(r'caseModule/(?P<pk>\d+)/$', views.CaseModuleDetailAPIView.as_view()),
    path('speakerProduct/add/', views.SpeakerModuleCreateView.as_view({
        "get": "list",
        "post": "create"
    })),
]
